home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / SciAn / src / ScianStdCDraw.h < prev    next >
Text File  |  1994-08-01  |  2KB  |  117 lines

  1. /*ScianStdDraw.h
  2.   Eric Pepke
  3.   June 16, 1991
  4.  
  5.   Standard CMAP mode picture drawing traversal.  It's an include file to 
  6.   limit the amount of typing I have to do.  I would have made it a macro,
  7.   but it has #defines
  8. */
  9.  
  10.     switch (curLightShading)
  11.     {
  12.         case NOLIGHT:
  13.         switch (curColorShading)
  14.         {
  15.             case NOCOLOR:
  16. #define P PCNN
  17. #define V VCNN
  18.             TRAVERSE;
  19. #undef P
  20. #undef V
  21.             break;
  22.             case MONOCOLOR:
  23. #define P PCNM
  24. #define V VCNM
  25.             TRAVERSE;
  26. #undef P
  27. #undef V
  28.             break;
  29.             case SMOOTHCOLOR:
  30. #define P PCNS
  31. #define V VCNS
  32.             TRAVERSE;
  33. #undef P
  34. #undef V
  35.             break;
  36.         }
  37.         break;
  38.         case MONOLIGHT:
  39.         switch (curColorShading)
  40.         {
  41.             case NOCOLOR:
  42. #define P PCMN
  43. #define V VCMN
  44.             TRAVERSE;
  45. #undef P
  46. #undef V
  47.             break;
  48.             case MONOCOLOR:
  49. #define P PCMM
  50. #define V VCMM
  51.             TRAVERSE;
  52. #undef P
  53. #undef V
  54.             break;
  55.             case SMOOTHCOLOR:
  56. #define P PCMS
  57. #define V VCMS
  58.             TRAVERSE;
  59. #undef P
  60. #undef V
  61.             break;
  62.         }
  63.         break;
  64.         case SMOOTHLIGHT:
  65.         switch (curColorShading)
  66.         {
  67.             case NOCOLOR:
  68. #define P PCSN
  69. #define V VCSN
  70.             TRAVERSE;
  71. #undef P
  72. #undef V
  73.             break;
  74.             case MONOCOLOR:
  75. #define P PCSM
  76. #define V VCSM
  77.             TRAVERSE;
  78. #undef P
  79. #undef V
  80.             break;
  81.             case SMOOTHCOLOR:
  82. #define P PCSS
  83. #define V VCSS
  84.             TRAVERSE;
  85. #undef P
  86. #undef V
  87.             break;
  88.         }
  89.         break;
  90.         case DEPTHCUELIGHT:
  91.         switch (curColorShading)
  92.         {
  93.             case NOCOLOR:
  94. #define P PCDN
  95. #define V VCDN
  96.             TRAVERSE;
  97. #undef P
  98. #undef V
  99.             break;
  100.             case MONOCOLOR:
  101. #define P PCDM
  102. #define V VCDM
  103.             TRAVERSE;
  104. #undef P
  105. #undef V
  106.             break;
  107.             case SMOOTHCOLOR:
  108. #define P PCDS
  109. #define V VCDS
  110.             TRAVERSE;
  111. #undef P
  112. #undef V
  113.             break;
  114.         }
  115.         break;
  116.     }
  117.